package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@ToString
public class TravelQuery extends QueryObject {
    @Getter
    private String destId;
    //根据什么排序,1为时间,2为点赞数
    @Getter
    private Integer orderType = -1;
    //消费类别
    private Integer perExpendType;
    //出行天数类别
    private Integer dayType;
    public TravelCondition getPerExpendType() {
        return TravelCondition.MAP_PEREXPEND.get(perExpendType);
    }
    public TravelCondition getDayType() {
        return TravelCondition.MAP_DAY.get(dayType);
    }
}
